#!/bin/sh
CMD_JAVA=$JAVA_HOME"/bin/java"
APP_HOME="/data/umbrella/umbrella-car-1.0-SNAPSHOT"

JAVA_OPTIONS="-cp $APP_HOME/bin"
MAINCLASS=com.umbrella.UmPlateformApplication
CLASSPATH=.:$APP_HOME:$APP_HOME/libs
LOG_CONFIG="-Dlogging.config=$APP_HOME/conf/log4j2.xml"
CONFIG_LOCATION="-Dconfig.location=$APP_HOME/conf/"

for i in $APP_HOME/libs/*
	do
		JAVA_OPTIONS=$JAVA_OPTIONS:$i
	done
	
echo $JAVA_OPTIONS

${CMD_JAVA} $LOG_CONFIG $CONFIG_LOCATION $JAVA_OPTIONS $MAINCLASS &